package com.yngrp.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.jeecgframework.core.common.entity.IdEntity;

/**
 *  @Description: 待办工单实体
 *  @author  SLH
 *  @date  20160717
 */
@Entity
@Table(name = "yl_wo_todo")
public class TodoWO extends IdEntity implements java.io.Serializable{
	private static final long serialVersionUID = 1L;
	
	/***关联工单实体**/
	private WorkOrder workOrder;
	
	/**处理人ID**/
	private String acUserid;
	
	/**处理人名称**/
	private String acUsername;
	
	/**处理部门ID**/
	private String acDeptid;
	
	/**处理部门名称**/
	private String acDeptname;
	
	/** 创建人ID **/
	private String createBy;
	
	/** 创建人姓名 **/
	private String createRealname;
	
	/** 创建部门ID **/
	private String createDepartmentid;
	
	/** 创建部门名称 **/
	private String createDepartmentname;
	
	/** 创建时间 **/
	private Date createDatetime;
	
	/** 读取状态 **/
	private String isRead;
	
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "wo_id")
	public WorkOrder getWorkOrder() {
		return this.workOrder;
	}

	public void setWorkOrder(WorkOrder workOrder) {
		this.workOrder = workOrder;
	}

	@Column(name ="ac_user_id")
	public String getAcUserid() {
		return acUserid;
	}

	public void setAcUserid(String acUserid) {
		this.acUserid = acUserid;
	}

	@Column(name ="ac_user_name")
	public String getAcUsername() {
		return acUsername;
	}

	public void setAcUsername(String acUsername) {
		this.acUsername = acUsername;
	}

	@Column(name ="ac_dept_id")
	public String getAcDeptid() {
		return acDeptid;
	}

	public void setAcDeptid(String acDeptid) {
		this.acDeptid = acDeptid;
	}

	@Column(name ="ac_dept_name")
	public String getAcDeptname() {
		return acDeptname;
	}

	public void setAcDeptname(String acDeptname) {
		this.acDeptname = acDeptname;
	}
	
	@Column(name ="create_by")
	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	@Column(name ="create_realname")
	public String getCreateRealname() {
		return createRealname;
	}

	public void setCreateRealname(String createRealname) {
		this.createRealname = createRealname;
	}

	@Column(name ="create_departmentid")
	public String getCreateDepartmentid() {
		return createDepartmentid;
	}

	public void setCreateDepartmentid(String createDepartmentid) {
		this.createDepartmentid = createDepartmentid;
	}

	@Column(name ="create_departmentname")
	public String getCreateDepartmentname() {
		return createDepartmentname;
	}

	public void setCreateDepartmentname(String createDepartmentname) {
		this.createDepartmentname = createDepartmentname;
	}

	@Column(name ="create_datetime")
	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	@Column(name ="isread")
	public String getIsRead() {
		return isRead;
	}

	public void setIsRead(String isRead) {
		this.isRead = isRead;
	}

}
